//
//  QR_Bar_ScanView.h
//  QuanJieShopProject
//
//  Created by 刘中义 on 2018/2/28.
//  Copyright © 2018年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>

//扫描成功发送通知(在代理实现的情况下不发送)
extern NSString *const scanSuccessNotification;
//通知传递的数据信息
extern NSString *const scanSuccessMessage;

@class QR_Bar_ScanView;
//1.定义协议
@protocol QRBarScanViewDelegate <NSObject>
- (void) scanView:(QR_Bar_ScanView *)scanView codeInfo:(NSString *)codeInfo;
@end

@interface QR_Bar_ScanView : UIView

//2.遵循协议的一个变量定义
@property (nonatomic,weak) id<QRBarScanViewDelegate> delegate;

//方法
//创建扫描视图方法
+ (instancetype) scanViewShowInController:(UIViewController *)controller;
//开始扫描
- (void) startScan;
//结束扫描
- (void) stopScan;

@end
